//
//  NormalPostRequest.m
//  ZT_iOS
//
//  Created by Brigitte on 2017/2/22.
//  Copyright © 2017年 Brigitte. All rights reserved.
//

#import "NormalPostRequest.h"

@interface NormalPostRequest()

@property (nonatomic,strong)NSString *url;
@property (nonatomic, strong)NSDictionary *parameters;

@end

@implementation NormalPostRequest

- (instancetype)initWithUrl:(NSString *)url query:(NSDictionary *)query
{
    if (self = [super init]) {
        _url = url;
        self.parameters = [NSDictionary dictionaryWithDictionary:query];
    }
    return self;
}


- (NSString *)url
{
    
    return [BaseRequest urlWithApi:_url query:nil];
}


- (NSDictionary *)params
{
    return self.parameters;
}


- (ZTHttpMethod)method
{
    return ZTHttpMethodPost;
}


@end
